extends base

block append resources
	script(src="/assets/js/login.js")

block content
	.mdl-grid
		.mdl-layout-spacer
		.mdl-card.mdl-shadow--2dp
			.mdl-card__title
				h2.mdl-card__title-text 登录
			.mdl-card__content
				.mdl-grid
					form(action="#" method="POST")
						.mdl-textfield.mdl-js-textfield.mdl-textfield--floating-label
							input.mdl-textfield__input(type="text" name="username" id="username")
							label.mdl-textfield__label(for="username") 用户名
						.mdl-textfield.mdl-js-textfield.mdl-textfield--floating-label
							input.mdl-textfield__input(type="password" name="password" id="password")
							label.mdl-textfield__label(for="password") 密码
			.mdl-card__actions.mdl-card--border
				a#btn-login.mdl-button.mdl-button--colored.mdl-js-button.mdl-js-ripple-effect.mdl-button--raised(onclick="login()") 登录
				span &nbsp;
				unless noRegister
					a.mdl-button.mdl-button--colored.mdl-js-button.mdl-js-ripple-effect(href="/register") 注册
		.mdl-layout-spacer